﻿
//右侧导航
var btb = $(".rightNav");
var tempS;
$(".rightNav").hover(function () {
    var thisObj = $(this);
    tempS = setTimeout(function () {
        thisObj.find("a").each(function (i) {
            var tA = $(this);
            setTimeout(function () { tA.animate({ right: "0" }, 200); }, 50 * i);
        });
    }, 200);

}, function () {
    if (tempS) { clearTimeout(tempS); }
    $(this).find("a").each(function (i) {
        var tA = $(this);
        setTimeout(function () {
            tA.animate({ right: "-110" }, 200, function () {
            });
        }, 50 * i);
    });

});
var isIE6 = !!window.ActiveXObject && !window.XMLHttpRequest;

//滚动加载
var scrollLoad = function () {
    $("#content iframe[_src]").each(function () {
        var t = $(this);
        if (t.offset().top <= $(document).scrollTop() + $(window).height()) {
            t.attr("src", t.attr("_src")).removeAttr("_src");
        }
    });//each E
}

scrollLoad();
$(window).scroll(function () {
    if (isIE6) { btb.css("top", $(document).scrollTop() + 30) }
    scrollLoad();
});